package com.future.dao;

import java.sql.Connection;
import java.util.List;

import com.future.model.po.ServicesModel;

public class ServicesDAO extends BaseDAO<ServicesModel> {

	public ServicesDAO() {

	}

	public ServicesDAO(Connection conn) {
		super(conn);
	}

	public List<ServicesModel> findAll() {
		String sql = "select * from services";
		List<ServicesModel> servicesList = this.searchAsBeanList(sql,
				ServicesModel.class);
		return servicesList;
	}

	public boolean saveServices(ServicesModel services) {
		String sql = "insert into services (services) values (?)";
		return this.update(sql, services.getServices());
	}

}